<?php


// TODO: Learn PHP & MySQL immediately!
class Foo
{
	function __construct($param)
	{
		// Constructor with parameter
	}
	
	public $attribute;
	
	function __get($name)
	{
		return $this->$name;
	}
	
	function __set ($name, $value)
	{
		if( ($name = "attribute") && ($value >= 0) && ($value <= 100))
			$this->$name = $value;
	}

?>